<template>
  <div class="content-wrap">
    <el-table :data="list" border style="width: 100%">
      <!-- <el-table-column label="排序" align="center" prop="diagSrtNo" />  -->
      <el-table-column label="诊断" align="center" prop="diagName" />
      <el-table-column label="诊断代码" align="center" prop="diagCode" />
      <el-table-column label="科室名称" align="center" prop="diagDept" />
      <el-table-column label="科室代码" align="center" prop="diagDeptCode" />
      <el-table-column label="医生编码" align="center" prop="diagDrNo" />
      <el-table-column label="医生姓名" align="center" prop="diagDrName" />
      <el-table-column
        label="诊断时间"
        align="center"
        prop="diagTime"
        width="180"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.diagTime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      <!-- <el-table-column label="中医病名代码" align="center" prop="tcmDiseCode" />
      <el-table-column label="中医病名" align="center" prop="tcmDiseName" />
      <el-table-column label="中医证候代码" align="center" prop="tcmsympCode" />
      <el-table-column label="中医证候" align="center" prop="tcmsymp" /> -->
    </el-table>
  </div>
</template>

<script>
import { listDiagnosis } from "@/api/pr/consultation";
export default {
  props: ["id", "info"],
  data() {
    return {
      // 假设有初始数据
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        id: null,
      },
    };
  },
  computed: {
    list() {
      return this.info.diaList || [];
    },
  },
  methods: {},
};
</script>
<style scoped lang="scss">
.content-wrap {
  padding: 0 0 32px 0;
}
</style>
